<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" close="true">
        <span aria-hidden="true">×</span>
    </button>
    <h4 class="modal-title">
        <span class="fa fa-legal"></span>&nbsp;修改
    </h4>
</div>
<style>
    .config_img{height:45px;margin-top:15px;}
    .title{border-bottom:1px solid #e5e5e5;margin:0px 25px;padding:10px 0px;font-weight:800}
    .menu{border-bottom:1px solid #e5e5e5;margin-bottom:20px}
</style>
<div class="modal-body">

    <div class="new-content">
        <form name="add_form" class="form-horizontal layui-form">

            <div class="form-group">
                <label class="col-sm-2 control-label">*年份:</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control year" name="year" placeholder="年月" value="{$detail.year}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">*月份:</label>
                <div class="col-sm-10">
                    <select class="layui-select" name="month">
                        <option value="0">请选择</option>
                        {volist name="month" id="vo"}
                        <option value="{$key}" {if condition="$detail.month eq $key"} selected {/if}>{$vo}</option>
                        {/volist}
                    </select>
                </div>
            </div>

            <div class="menu">
                <div class="form-group">
                    <div class="title">
                        固定资产
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">项目个数:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" name="oneCount" placeholder="项目个数" value="{$detail.oneCount}">
                    </div>

                    <label class="col-sm-2 control-label">在建项目个数:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" name="oneBuildCount" placeholder="在建项目个数" value="{$detail.oneBuildCount}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">增幅:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="layui-input" name="oneIncrease" placeholder="增幅" value="{$detail.oneIncrease}">
                            <span class="input-group-addon">%</span>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">投资额:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="form-control" name="oneInvest" placeholder="投资额" value="{$detail.oneInvest}">
                            <span class="input-group-addon">万元</span>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">剩余投资:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="form-control" name="oneSurplusInvest" placeholder="剩余投资" value="{$detail.oneSurplusInvest}">
                            <span class="input-group-addon">万元</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="menu">
                <div class="form-group">
                    <div class="title border_top">
                        工业投资
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">项目个数:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" name="twoCount" placeholder="项目个数" value="{$detail.twoCount}">
                    </div>

                    <label class="col-sm-2 control-label">在建项目个数:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" name="twoBuildCount" placeholder="在建项目个数" value="{$detail.twoBuildCount}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">增幅:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="layui-input" name="twoIncrease" placeholder="增幅" value="{$detail.twoIncrease}">
                            <span class="input-group-addon">%</span>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">工业占投资比重:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="layui-input" name="twoRatio" placeholder="工业占投资比重" value="{$detail.twoRatio}">
                            <span class="input-group-addon">%</span>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">投资额:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="form-control" name="twoInvest" placeholder="投资额" value="{$detail.twoInvest}">
                            <span class="input-group-addon">万元</span>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">剩余投资:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="form-control" name="twoSurplusInvest" placeholder="剩余投资" value="{$detail.twoSurplusInvest}">
                            <span class="input-group-addon">万元</span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="menu">
                <div class="form-group">
                    <div class="title border_top">
                        工业技改投资
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">项目个数:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" name="threeCount" placeholder="项目个数" value="{$detail.threeCount}">
                    </div>

                    <label class="col-sm-2 control-label">在建项目个数:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" name="threeBuildCount" placeholder="在建项目个数" value="{$detail.threeBuildCount}">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">增幅:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="layui-input" name="threeIncrease" placeholder="增幅" value="{$detail.threeIncrease}">
                            <span class="input-group-addon">%</span>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">技改占工业比重:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="layui-input" name="threeRatio" placeholder="技改占工业比重" value="{$detail.threeRatio}">
                            <span class="input-group-addon">%</span>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">投资额:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="form-control" name="threeInvest" placeholder="投资额" value="{$detail.threeInvest}">
                            <span class="input-group-addon">万元</span>
                        </div>
                    </div>

                    <label class="col-sm-2 control-label">剩余投资:</label>
                    <div class="col-sm-4">
                        <div class="input-group" >
                            <input type="text" class="form-control" name="threeSurplusInvest" placeholder="剩余投资" value="{$detail.threeSurplusInvest}">
                            <span class="input-group-addon">万元</span>
                        </div>
                    </div>
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-2 control-label">状态:</label>
                <div class="col-sm-8">
                    <select name="status">
                        <option value="1" {if condition="$detail['status'] eq 1"} selected {/if}>启用</option>
                        <option value="2" {if condition="$detail['status'] eq 2"} selected {/if}>禁用</option>
                    </select>
                </div>
            </div>

            <input type="hidden" name="id" value="{$detail.id}">
        </form>
    </div>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default btn-sm" close="true">关闭</button>
    <button type="button" class="btn btn-primary btn-sm" _event="edit">保存</button>
</div>
<script>
    layui.use(['form','laydate'], function() {
        var form = layui.form;
        var laydate = layui.laydate;
        //年选择器
        laydate.render({
            elem: '.year'
            ,type: 'year'
        });


        layui.form.render('select');
        form.render();
    });
</script>